<?php
/**
 * 短信服务
 */

namespace app\service\RpcService;

use app\service\SmsService;

class SmsRpc extends BaseRpc
{
    /**
     * 发送短信
     * @param array $param
     * @return false|string
     */
    public function sendSms(array $param = [])
    {
        $serviceObj = new SmsService();
        $res = $serviceObj->sendSms($param['api_key'], $param);
        return $this->response($res['status'], $res['msg'], $res['data']);
    }
}
